
<!doctype html>
<html class="no-js">
<#include "../../common/header.ftl">
<script	src="${basePath}/js/groupGoodsScene/edit.js?v=201711021700"></script>
<head>
<meta charset="UTF-8">
<title>编辑场景</title>
<style>
	.foot{
		position: absolute;
		left: 30%;
		top: 60%;
	}
	.lable_text{
		padding:0px 8px;
	}
	.hide{
		display:none;
	}
	.readonly-input{
		background-color: #e2e2e2;
	}
	.left{
		float:left;
	    width: 45%;
	}
	.answer-tips{
		color:red;
	}
</style>
</head>
<body>
<div style="min-height: 80%; min-width: 90%; margin: 20px 20px;">
	<div style="width:80%;">
		<form class="layui-form layui-form-pane">
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">上级场景*</label>
				<div class="layui-input-block">
					<select name="parentId" lay-filter="parentId" <#if groupScene.parentId??>disabled</#if>>
				        <option value="">请选择上级场景</option>
				        <option value="0" data-grade="0" <#if groupScene.parentId?? && groupScene.parentId==0>selected</#if>>一级场景</option>
				         <#list sceneList! as scene>
				         	<option value="${scene.sceneId!}" data-grade="1" <#if groupScene.parentId?? && groupScene.parentId == scene.sceneId>selected</#if>>${scene.name}</option>
				         </#list>
				     </select>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label" style="width:112px;">场景名称*</label>
				<div class="layui-input-block">
						<input type="hidden" name="sceneId" required="" value="${groupScene.id!}">
						<input type="text"	name="name" required="" lay-verify="required"
						placeholder="请输入场景名称" value="${groupScene.name!}" autocomplete="off" class="layui-input">
				</div>
			</div>
		</form>
	</div>
	<div class="foot">
		<button type="button" class="layui-btn layui-btn-normal"
			id="save-button">
			<i class="layui-icon">&#xe605;</i>保存
		</button>
		<button type="button" class="layui-btn layui-btn-normal"
			id="close-button">
			<i class="layui-icon">&#x1006;</i>关闭
		</button>
	</div>
</div>
</body>
<script type="text/javascript">
	var basePath = "${basePath}";
	var init={
	 	sceneId:"${groupScene.sceneId!}",
	 	parentId:"${groupScene.parentId!}",
	}
   $(function(){
		layui.use(['form', 'layer'], function(){
		    var layer = layui.layer;
		    var form = layui.form(); 
		});
	}); 
</script>
</html>
